//
//  VBDatabase.h
//  VicBattle
//
//  Created by Nguyen Nguyen on 5/7/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

typedef struct
{
    NSString *name;
    int row, col;
    float x0, y0;
    char data[12][12];
}VBMapInfo;

typedef struct 
{
    NSString *name;
    float x, y;
}VBOffsetInfo;

@interface VBDatabase : NSObject
{
    sqlite3 *_data;
    VBOffsetInfo *OffsetInfo;
    VBMapInfo *MapInfo;
    
}

+(VBDatabase*) database;
-(VBMapInfo *) getMapById:(int) idNumber;
-(VBOffsetInfo *) getOffsetInfoById:(int) idNumber;

@end
